<%-- 
    Document   : reginfo
    Created on : 2019-9-3, 9:32:46
    Author     : danny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            request.setCharacterEncoding("UTF-8");
            //读取用户名和密码
            String name = request.getParameter("name");
            String pwd = request.getParameter("pwd");
            
            out.println("用户名：" + name + "<br/>");
            out.println("密码：" + pwd + "<br/>");

            //读取复选框选择项
            String[] channels = request.getParameterValues("channel");
            if (channels != null) {
                for (int i = 0; i < channels.length; i++) {
                    out.println(channels[i]);
                }
            }
        %>
    </body>
</html>
